package com.fun.feifun.modules.business.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fun.feifun.modules.business.model.BusinessGoods;
import com.fun.feifun.modules.business.model.BusinessOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fun.feifun.modules.business.model.BusinessOrderSummary;
import com.fun.feifun.modules.business.model.BusinessUser;
import com.fun.feifun.modules.business.model.param.BusinessPlaceOrderParam;
import com.fun.feifun.modules.business.model.param.*;

import java.util.Map;

/**
 * <p>
 * 系统用户 服务类
 * </p>
 *
 * @author wkf
 * @since 2024-06-04
 */
public interface IBusinessOrderService extends IService<BusinessOrder> {

    BusinessOrder matching(BusinessOrder order);

    BusinessOrder payment(BusinessOrder order,Boolean isAuto);

    BusinessOrder paymentReturn(String outsideOrderCode,String resultno);

    Map<String, String> getInterfaceOrederInfo(BusinessOrder order);

    void orderOperate(BusinessOrderOperation param);

    BusinessOrder placeOrder(BusinessGoods goods, BusinessUser user, BusinessPlaceOrderParam item);

    Map<String,Object> pullOrder(BusinessOrderOutPutParam param);

    boolean payPullOrder(BusinessOrderSuccessParam param);
    void backUserOrderInfo();
    void reFreshOrderInfo();


    BusinessOrder reRouteOrder(BusinessOrder order);

    Page<BusinessOrderSummary> summaryPage(BusinessSummaryPage param);


    }
